package com.seawave.sdkclientjdk11.service.impl;

import com.seawave.sdkclientjdk11.service.AbstractService;
import com.seawave.sdkcore.vo.base.BaseRequest;
import com.seawave.sdkcore.vo.base.BaseResponse;
import com.seawave.sdkcore.vo.iot.IotRequest;
import com.seawave.sdkcore.vo.iot.QueryCardOfferDtl.QueryCardOfferDtlRequest;
import com.seawave.sdkcore.vo.iot.QueryCardOfferDtl.QueryCardOfferDtlResponse;

/**
 * @ClassName QueryCardOfferDtlService
 * @Description: 物联卡当前时间有效套餐列表查询
 * @Author: Jing GuangYong
 * @Date: 2020/2/6 20:02
 * @Version: 1.0
 */
public class QueryCardOfferDtlService extends AbstractService<QueryCardOfferDtlRequest, QueryCardOfferDtlResponse> {

    /**
    * @Description: 获取接口
    * @Author: Jing GuangYong
    * @Date: 2020/2/6 20:03
    * @Param
    * @return
    */
    @Override
    protected String getInterfaceUrl(BaseRequest request) {
        return request.getRealmName()+"/queryCardOfferDtl";
    }

    /**
    * @Description: 请求接口
    * @Author: Jing GuangYong
    * @Date: 2020/2/6 20:03
    * @Param
    * @return
    */
    @Override
    public BaseResponse call(BaseRequest request) throws Exception {
        //数据加密
        IotRequest iotRequest=super.encryptMsg(request);
        //请求接口
        return super.call(iotRequest,request);
    }
}
